<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Intent (Android)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Intent_(Android)"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Intent_Android rootpage-Intent_Android skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Intent (Android)</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><p>An <b>Intent</b> in the <a href="Android_(operating_system)" title="Android (operating system)">Android operating system</a> is a <a href="Software" title="Software">software</a> mechanism that allows <a href="End-user_(computer_science)" class="mw-redirect" title="End-user (computer science)">users</a> to coordinate the functions of different activities to achieve a task. An Intent is a messaging object<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> which provides a facility for performing <a href="Late_binding" title="Late binding">late runtime binding</a> between the code in different applications in the Android <a href="Development_environment_(software_development_process)" class="mw-redirect" title="Development environment (software development process)">development environment</a>. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities: Intents provide an inter-application messaging system that encourages collaboration and <a href="Component_reuse" class="mw-redirect" title="Component reuse">component reuse</a>.<sup id="cite_ref-berkeley_2-0" class="reference"><a href="#cite_note-berkeley-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p><p>An Intent is basically a <a href="Passive_data_structure" title="Passive data structure">passive data structure</a> holding an <a href="Abstract_data_type" title="Abstract data type">abstract description</a> of an action to be performed.<sup id="cite_ref-android_3-0" class="reference"><a href="#cite_note-android-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> <i>Android Tablet Application Development</i> likens an Intent to flicking a switch: "Your intent is to turn on the light, and to do so, you perform the action of flipping the switch to the On position."<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Description">Description</h2></div>
<p>The concept was created as a way to allow developers to easily remix different apps and allow each type of <a href="Task_analysis" title="Task analysis">task</a> (called <i>activity</i>) to be handled by the application best suited to it, even if provided by a third party. Although the concept was not new, the Android architecture doesn't require <a href="Elevated_privilege" class="mw-redirect" title="Elevated privilege">elevated privileges</a> to access the components, which makes it an <a href="Open_platform" title="Open platform">open platform</a>.<sup id="cite_ref-vodafone_5-0" class="reference"><a href="#cite_note-vodafone-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p><p>Activities in Android are defined as classes that control the life cycle of a task in the user interface. The activities supported by an application are declared in a <a href="Manifest_(computing)" class="mw-redirect" title="Manifest (computing)">manifest</a>, so that other applications can read what activities are supported. Intents in one application can start particular activities in a different application, if the latter supports the message type of the Intent.<sup id="cite_ref-sitepoint_6-0" class="reference"><a href="#cite_note-sitepoint-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p><p>An analysis in 2011 by researchers from <a href="University_of_California%2C_Berkeley" title="University of California, Berkeley">The University of California at Berkeley</a> found that Intents can pose a <a href="Security_risk" class="mw-redirect" title="Security risk">security risk</a>, allowing attackers to read content in messages and to insert malicious messages between applications. <sup id="cite_ref-berkeley_2-1" class="reference"><a href="#cite_note-berkeley-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */
.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}
/* end https://en.wikipedia.org/ */
</style><div class="reflist">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFFerrill2011" class="citation book cs1">Ferrill, Paul (2011). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=uYEmWet7QtsC&dq=intent+android&pg=PA3"><i>Pro Android Python with SL4A</i></a>. Apress. p. 3. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9781430235699</bdi>.</cite></span>
</li>
<li id="cite_note-berkeley-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-berkeley_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-berkeley_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a href="Adrienne_Porter_Felt" title="Adrienne Porter Felt">Felt, A. P.</a>, Chin, E., Hanna, S., Song, D., & Wagner, D. (2011, October). Android permissions demystified. In Proceedings of the 18th ACM conference on Computer and communications security (pp. 627-638). ACM.</span>
</li>
<li id="cite_note-android-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-android_3-0">^</a></b></span> <span class="reference-text"><a rel="nofollow" class="external text" href="https://developer.android.com/reference/android/content/Intent.html">Android API</a> retrieved 23-Jul-2013</span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><b><a href="#cite_ref-4">^</a></b></span> <span class="reference-text"><cite id="CITEREFFelker" class="citation web cs1">Felker, Donn. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130821083845/http://www.dummies.com/how-to/content/common-android-intent-usage0.html">"Common Android Intent Usage"</a>. <i>Android Tablet Application Development</i>. Wiley. Archived from <a rel="nofollow" class="external text" href="http://www.dummies.com/how-to/content/common-android-intent-usage0.html">the original</a> on 21 August 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">3 September</span> 2013</span>.</cite></span>
</li>
<li id="cite_note-vodafone-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-vodafone_5-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20131004084946/http://developer.vodafone.com/develop-apps/android/android-intents/">"Remixing apps with Android intents"</a>. <i>developer.vodafone.com</i>. <a href="Vodafone" title="Vodafone">Vodafone</a>. Archived from <a rel="nofollow" class="external text" href="http://developer.vodafone.com/develop-apps/android/android-intents/">the original</a> on 4 October 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">18 September</span> 2013</span>.</cite></span>
</li>
<li id="cite_note-sitepoint-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-sitepoint_6-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFCooper,_Bruce2011" class="citation web cs1">Cooper, Bruce (12 July 2011). <a rel="nofollow" class="external text" href="http://www.sitepoint.com/activities-tasks-and-intents-oh-my/">"Activities, Tasks and Intents, Oh My!"</a>. <a href="SitePoint" title="SitePoint">SitePoint</a><span class="reference-accessdate">. Retrieved <span class="nowrap">18 September</span> 2013</span>.</cite></span>
</li>
</ol></div></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-02-17" href="https://en.wikipedia.org/wiki/?title=Intent_(Android)&oldid=1276260410">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>